package scene;

public class CountFPS {


	private double start=0;
	private double stop=0;
	private final double UN_MILLIARD = 1000000000;
	private boolean process = false;


	public CountFPS()
	{
		start = 0;
		stop = 0;


	}

	public void start() {

				start = System.nanoTime();


	}



	public void stop() {
		stop = System.nanoTime();
	}

	private double getTExec()
	{
		return (stop-start)/UN_MILLIARD;
	}

	public int nbFPS()
	{
		return (int)Math.floor(1./getTExec());

	}




}
